package cn.iune.erp.accounting;


import java.sql.Date;
import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface IAccountPeriodDao {
	
	public void insert(AccountPeriod obj);
	
	public void delete(String fID);
	
	public AccountPeriod update(AccountPeriod obj);

	public List<AccountPeriod> getAll();
	
	public List<AccountPeriod> getByMasterID(String fMasterID);
	
	public AccountPeriod getByID(String fID);
	
	JSONObject query(JSONObject data) throws SQLException;

	JSONObject create(JSONObject data);

	AccountPeriod getByNo(String yearNo, String periodNo, String enterpriseNo);

	List<AccountPeriod> getPeriodNoList(String yearNo, String periodNoStart, String periodNoEnd, String enterpriseNo);

	AccountPeriod getByDate(Date orderDate, String enterpriseNo);

}
